/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mvc.model;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author ERVIRI
 */
public class Usuario extends Persona{
    

public static Usuario load(ResultSet rs)throws SQLException{

	      Usuario u=new Usuario();

               u.setId(rs.getInt(1));
               u.setNombre(rs.getString(2));
               u.setApellidoUno(rs.getString(3));
               u.setApellidoDos(rs.getString(4));
               u.setTelefono(rs.getInt(5));
               u.setDireccion(rs.getString(6));
               u.setEmail(rs.getString(7));
               u.setContraseña(rs.getString(8));

	       return u;
	}

}
